[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
ADJTIME IEXP
Function
Add or subtract IEXP minutes to the users time available this session.
Syntax
ADJTIME minutes
minutes - An integer expression containing the number of minutes
that the users time left should be adjusted by. A value
greater than 0 will add time; a value less than 0 will
deduct time.
Remarks
Use this statement to reward (or penalize) the user with more (or less)
time based on any condition or event you wish. However, the
added/deducted time is only applied to the current call. It will not be
remembered after the caller hangs up, except that it will be reflected
in the time online today. For example, if a caller has a normal daily
limit of 30 minutes and you add 15 minutes, they can stay online for up
to 45 minutes. If they only stay online for 15 minutes and hangup, they
will only have 15 minutes left at the beginning of the next call, not 30;
the added time isn't saved. If they stay online for 40 minutes though,
it will have given them their entire normal allotment of time plus 10 of
the 15 extra minutes. If they try to call back to use their last 5
minutes they will not be able to because PCBoard will see that they've
used their entire daily time limit plus 10 minutes. The last 5 minutes
wasn't saved.
Examples
STRING yn
INPUTYN "Do you wish to gamble 5 minutes for 10",yn,@X0E
IF (yn = YESCHAR()) THEN
IF (RANDOM(1) = 1) THEN
PRINTLN "You *WON*! 10 extra minutes awarded . . ."
ADJTIME 10
ELSE
PRINTLN "You lost. Sorry, but I have to take 5 minutes now . . ."
ADJTIME -5
ENDIF
ELSE
PRINTLN "Chicken! :)"
ENDIF
See Also:
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson